<?php

namespace app\adminapi\validate\setting\lang;

use app\common\validate\BaseValidate;

/**
 * 语言验证器
 * Class ConfigValidate
 * @package app\adminapi\validate\setting
 */
class ConfigValidate extends BaseValidate
{
    protected $rule = [
        'type' => 'require',
        'access_key' => 'require',
        'secret_key' => 'require',
        'status' => 'require',
    ];

    protected $message = [
        'type.require' => '请选择类型',
        'access_key.require' => '请输入access_key',
        'secret_key.require' => '请输入secret_key',
        'status.require' => '请选择状态',
    ];

    /**
     * @notes 详情
     * @return ConfigValidate
     */
    public function sceneDetail()
    {
        return $this->only(['type']);
    }

}